package com.wzz.seckillone.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.wzz.seckillone.mapper.OrderMapper;
import com.wzz.seckillone.pojo.Order;
import com.wzz.seckillone.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-11-08
 */
@Service
@Transactional
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Autowired
    private OrderMapper orderMapper;
    @Override
    public Order getOrderByOrderId(String orderId) {
        return orderMapper.getOrderByOrderId(orderId);
    }
}
